<div ng-controller="PickpointCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/pickpoint/list">{{'发货点'|translate}}</a></li>
        <li class="active"> {{store.store_id?'edit':'add_new'|translate}}</li>
    </ul>
    <form name="storeForm" novalidate ng-if="pickpoint">
        <div class="control-group">
            <label class="control-label v-top">{{'发货人姓名'|translate}}:</label>
            <div class="controls">
                <input ng-model="pickpoint.delivery_name" type="text" name="delivery_name" class="input-xlarge">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'发货点名称'|translate}}:</label>
            <div class="controls">
                <input ng-model="pickpoint.name" type="text" name="name" class="input-xlarge">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'国家'|translate}}:</label>
            <div class="controls">
                <pickpoint-country ng-model="pickpoint.country" dft="1"></pickpoint-country>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'电话'|translate}}:</label>
            <div class="controls">
                <input ng-model="pickpoint.phone" type="text" name="phone" class="input-xlarge">
            </div>
        </div>
        <div class="control-group" ng-show="pickpoint.country=='CN'">
            <label class="control-label v-top">{{'地区'|translate}}:</label>
            <div class="controls">
                <province-cascade ng-model="pickpoint.province" city-name="pickpoint.city" district-name="pickpoint.district" backcall="getCity(city);"></province-cascade>
            </div>
        </div>
        <div class="control-group" ng-show="pickpoint.country=='CN'">
            <label class="control-label v-top">{{'地图选址'|translate}}:</label>
            <div class="controls">
                <map callback="addresCallback(data,jingweidu)" lat="store.latitude" lng="store.longitude"></map>
            </div>
        </div>

        <div class="control-group" ng-show="pickpoint.country!='CN'">
            <label class="control-label v-top">{{'省份'|translate}}:</label>
            <div class="controls">
                <input ng-model="pickpoint.province" type="text" name="province" class="input-xlarge">
            </div>
        </div>
        <div class="control-group" ng-show="pickpoint.country!='CN'">
            <label class="control-label v-top">{{'城市'|translate}}:</label>
            <div class="controls">
                <input ng-model="pickpoint.city" type="text" name="city" class="input-xlarge">
            </div>
        </div>
        <div class="control-group" ng-show="pickpoint.country!='CN'">
            <label class="control-label v-top">{{'地区'|translate}}:</label>
            <div class="controls">
                <input ng-model="pickpoint.district" type="text" name="distirct" class="input-xlarge">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top">{{'address'|translate}}:</label>
            <div class="controls">
                <input ng-model="pickpoint.address" type="text" name="address" class="input-xlarge">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button ng-click="pickpointAdd()" class="sui-btn btn-primary" ng-disabled="!pickpoint.address || !pickpoint.phone">
                    {{'save' | translate}}
                </button>
            </div>
        </div>
    </form>
</div>